package com.sam4cloud.common.core.model;

import com.sam4cloud.common.core.model.supers.Convert;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @Author: Sam
 * @Date: 2022/12/12 17:23
 * @Description: 简单分页模型
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "MPageDTO对象", description = "分页参数")
public class MPageDTO extends Convert {

    private static final long serialVersionUID = 1L;
    /**
     * 每页显示条数，默认 10
     */
    @ApiModelProperty(value = "每页显示条数，默认 10")
    protected long size = 10;

    /**
     * 当前页
     */
    @ApiModelProperty(value = "当前页，默认 1")
    protected long current = 1;

}

